function mySqrt(x: number): number {
  let left = 0
  let right = x
  while (right >= left) {
    const mid = Math.floor((left + right) / 2)
    if (mid * mid > x) {
      right = mid - 1
    } else {
      left = mid + 1
    }
  }

  return right

}

console.log(Math)

// '视频看到980 约瑟夫环'
